
<%--
  Created by IntelliJ IDEA.
  User: HKemmm
  Date: 2021/4/3
  Time: 18:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用户信息添加</title>
    <link rel="shortcut icon" href="static/views/Hplus-v.4.1.0/favicon.ico">
    <link href="static/views/Hplus-v.4.1.0/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="static/views/Hplus-v.4.1.0/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="static/views/Hplus-v.4.1.0/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="static/views/Hplus-v.4.1.0/css/animate.css" rel="stylesheet">
    <link href="static/views/Hplus-v.4.1.0/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="static/views/Hplus-v.4.1.0/css/plugins/datapicker/datepicker3.css" rel="stylesheet">

    <!-- 全局js -->
    <script src="static/views/Hplus-v.4.1.0/js/jquery.min.js"></script>
    <script src="static/views/Hplus-v.4.1.0/js/bootstrap.min.js?v=3.3.6"></script>

    <!-- 自定义js -->
    <script src="static/views/Hplus-v.4.1.0/js/content.js?v=1.0.0"></script>

    <!-- Image cropper -->
    <script src="static/views/Hplus-v.4.1.0/js/plugins/cropper/cropper.min.js"></script>

    <!-- Data picker -->
    <script src="static/views/Hplus-v.4.1.0/js/plugins/datapicker/bootstrap-datepicker.js"></script>

    <script src="static/views/Hplus-v.4.1.0/js/demo/form-advanced-demo.js"></script>


    <script type="text/javascript">
        function checkMe(){
            var canSubmit = true;



            // // var name = document.getElementById("username").value;
            // // var psw1 = document.getElementById("userpsw").value;
            // // var address = document.getElementById("useraddress").value;
            // // var tel = document.getElementById("usertel").value;
            // // var date = document.getElementById("userregdate").value;
            //
            // var $name = $("#username").val();
            // var $psw1 = $("#userpsw").val();
            // var $address = $("#useraddress").val();
            // var $tel =  $("#usertel").val();
            // var $date = $("#userregdate").val();
            //
            //
            // if($name == null || $name.trim() == ""){
            //     canSubmit = false;
            //     //document.getElementById("user-name-label").innerHTML = "用户名不能为空！";
            //
            //     $("#user-name-label").html("用户名不能为空！");
            // }else {
            //     $("#user-name-label").html("");
            // }
            //
            //
            // if($psw1 == null || $psw1.trim() == ""){
            //     canSubmit = false;
            //     //document.getElementById("user-psw1-label").innerHTML = "密码不能为空！";
            //
            //     $("#user-psw1-label").html("密码不能为空！");
            // }else{
            //     $("#user-psw1-label").html("");
            // }
            //
            //

            //
            // if($tel == null || $tel.trim() == ""){
            //     canSubmit = false;
            //     //document.getElementById("user-tel-label").innerHTML = "电话不能为空！";
            //
            //     $("#user-tel-label").html("电话不能为空！");
            // }else{
            //     $("#user-tel-label").html("");
            // }
            //
            // if($date == null || $date.trim() == ""){
            //     canSubmit = false;
            //     //document.getElementById("user-date-label").innerHTML = "日期不能为空！";
            //
            //     $("#user-date-label").html("日期不能为空！");
            // }else{
            //     $("#user-date-label").html("");
            // }



            return canSubmit;
        }
    </script>
</head>
<body>
<div class="ibox-content">
<%--    enctype="multipart/form-data"  表示表单中有文件--%>
    <form action="addAndUpdateUserInfo" method="post" enctype="multipart/form-data" class="form-horizontal">
        <div class="form-group">
            <label class="col-sm-2 control-label">用户名</label>

            <div class="col-xs-6 col-md-4">
                <input type="text" id="userName" name="username" class="form-control">
                <span class="help-block m-b-none" id="user-name-label" style="color: red"></span>
            </div>
        </div>

        <div class="hr-line-dashed"></div>

        <div class="form-group">
            <label class="col-sm-2 control-label">密码</label>
            <div class="col-xs-6 col-md-4">
                <input type="password" id="userPsw" name="userpsw" class="form-control">
                <span class="help-block m-b-none">密码由字母、数字、特殊符号组成</span>
                <span class="help-block m-b-none" id="user-psw1-label" style="color: red"></span>
            </div>
        </div>

        <div class="hr-line-dashed"></div>

        <div class="form-group">
            <label class="col-sm-2 control-label">住址</label>

            <div class="col-xs-6 col-md-4">
                <input type="text" id="useraddress" name="useraddress" class="form-control" name="password">
                <span class="help-block m-b-none" id="user-address-label" style="color: red"></span>
            </div>
        </div>



        <div class="hr-line-dashed"></div>
        <div class="form-group">
            <label class="col-sm-2 control-label">联系电话</label>

            <div class="col-xs-6 col-md-4">
                <input type="text" id="userTel" name="usertel" class="form-control">
                <span class="help-block m-b-none" id="user-tel-label" style="color: red"></span>
            </div>
        </div>

        <div class="hr-line-dashed"></div>
        <!--
                <div class="form-group" id="data_3" >
                    <label class="col-sm-2 control-label font-noraml">10年视图</label>
                    <div class="input-group date col-xs-6 col-md-4" style="padding-left: 16px">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input type="text" id="userregdate" name="userregdate" class="form-control" value="2014-11-11">
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label">注册日期</label>
                    <div class="col-xs-6 col-md-4">
                        <input type="text"  id="userregdate" name="userregdate"   class="form-control">

                    </div>

                </div>
        -->

        <div class="form-group" id="data_3">
            <label class="col-sm-2 control-label">注册日期</label>
            <div class="input-group date col-xs-6 col-md-4" style="padding-left: 16px">
                <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                <input type="text" id="userregdate" name="userregdate" class="form-control">
                <span class="help-block m-b-none" id="user-date-label" style="color: #ff0000"></span>
            </div>
        </div>

        <div class="hr-line-dashed"></div>
        <div class="form-group">
            <label class="col-sm-2 control-label">图片</label>

            <div class="col-xs-6 col-md-4">
                <input type="file" id="userImg" name="file-userimg" class="form-control">
                <span class="help-block m-b-none" id="user-img-label" style="color: #ff0000"></span>
            </div>
        </div>

        <div class="hr-line-dashed"></div>
        <div class="form-group">
            <div class="col-sm-4 col-sm-offset-2">
                <button class="btn btn-primary" type="submit" onclick="return checkMe();">保存内容</button>
                <%--                <button class="btn btn-white" type="submit">取消</button>--%>
            </div>
        </div>
    </form>
</div>



</body>
</html>
